package org.amicofragile.springsamples;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainUsingInterface {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		 BeanFactory context = new ClassPathXmlApplicationContext("/service-context.xml");

		 DataProvider dataSource = (DataProvider)context.getBean("myDataProv");
		 System.out.println(dataSource.loadPersons());
	}

}
